<?php
class AboutController extends DRX_Controller 
{	
	function pageAction()
	{
		global $arrArgs;
		$menu_id 	= $arrArgs[0];
		$smarty 	= DRX::load("smarty");
		
		$layout     = new Layout();
		$args['topmenu_id'] = ABOUT_ID;
		$args['submenu_id'] = $menu_id;
		$args['leftpane']   = true;
		$layout->prepareLayout($args);
		
		$submenu	= new Submenu();
		$menuContent= $submenu->prepareMenuContent($menu_id);
		if (!($submenu->prepareMenuContent($menu_id)))
		{
		    redirect(APPLICATION_URL . ABOUT_URL);
		}
		$smarty->display("solvay.tpl");
	}
	
	function indexAction()
	{
		$smarty 	= DRX::load("smarty");
		
		$layout     = new Layout();
		$args['topmenu_id'] = ABOUT_ID;
		$args['leftpane']   = true;
		$layout->prepareLayout($args);
		
		$node		= new Node();
		$node->preparePage(ABOUT_ID);
		
		$smarty->display("solvay.tpl");
	}
}
?>
